package pro.softzhang.algo.lc1000;

/**
 *
 */
public class LC1016_BinaryStringWithSubstringsRepresenting1ToN {
    public static void main(String[] args) {

    }

    /**
     *
     */
    static
    class Solution {
        public boolean queryString(String s, int n) {
            for (int i = 1; i <= n; i++) {
                if(s.indexOf(Integer.toBinaryString(i)) == -1) {
                    return false;
                }
            }
            return true;
        }
    }
}
